package hjw.com.entity;

/**
 * <p>Project:Academic - User
 *
 * @author IvanWei玮 -- maste
 * @version 1.0
 * @DataTime 2025/1/20 14:03
 * @since 1.8
 */
public class User {
    private int id;
    private String account;
    private String password;
    private String role;
    private String phone;
    private String nickname;
    private int vip;
    private String addr;
    private String img;
    private int closed;

    public User() {
        this.id = 0;
        this.account = "";
        this.password = "";
        this.role = "";
        this.phone = "";
        this.nickname = "";
        this.vip = 0;
        this.addr = "";
        this.img = "";
        this.closed = 0;
    }

    public User(int id, String account, String password, String role, String phone, String nickname, int vip, String addr, String img, int closed) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.role = role;
        this.phone = phone;
        this.nickname = nickname;
        this.vip = vip;
        this.addr = addr;
        this.img = img;
        this.closed = closed;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", role='" + role + '\'' +
                ", phone='" + phone + '\'' +
                ", nickname='" + nickname + '\'' +
                ", vip=" + vip +
                ", addr='" + addr + '\'' +
                ", img='" + img + '\'' +
                ", close=" + closed +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getVip() {
        return vip;
    }

    public void setVip(int vip) {
        this.vip = vip;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getClosed() {
        return closed;
    }

    public void setClosed(int closed) {
        this.closed = closed;
    }
}
